#ifndef __BASE64_H__
#define __BASE64_H__

#include <stdio.h>

typedef void* ptr_t;

size_t base64_encode_size(size_t datasz);
size_t base64_decode_size(size_t srcsz);
int base64_encode(unsigned char *output, void *input, size_t inputsz);
int base64_decode(ptr_t output, unsigned char *input, size_t inputsz, unsigned char *discarded);


#endif

